
import React from 'react';
import Login from './View/Login';
import Home from './View/Home';
import MemberInfo from './View/MemberInfo';
import AddActivity from './View/AddActivity';
import MemberData from './View/MemberData';
import TiXianRecord from './View/TiXianRecord';
import EditPassword from './View/EditPassword';
import MyActivity from './View/MyActivity';
import EditActivity from './View/EditActivity';
import Register from './View/Register';
import PcHome from './View/PcHome';
import PcLogin from './View/PcLogin';
import {
  HashRouter,
  BrowserRouter,
  hashHistory,
  Router,
  Route,
  Link
} from 'react-router-dom'

const Routers = () => (
  
    <HashRouter>
        <div>
          <Route exact path="/" component={Login}/>
          <Route path="/Home" component={Home}/>
          <Route path="/MemberInfo" component={MemberInfo}/>     {/*我的账号*/}
          <Route path="/MemberData" component={MemberData}/>     {/*我的资料*/}
          <Route path="/AddActivity" component={AddActivity}/>   {/*新建活动*/}
          <Route path="/TiXianRecord" component={TiXianRecord}/> {/*提现记录*/}
          <Route path="/EditPassword" component={EditPassword}/> {/*修改密码*/}
          <Route path="/MyActivity" component={MyActivity}/>     {/*我的活动*/}
          <Route path="/EditActivity/:id" component={EditActivity}/> {/*编辑活动*/}
          <Route path="/Register" component={Register}/>         {/*注册账号*/}
          <Route path="/PcHome" component={PcHome}/>             {/*pc首页*/}
          <Route path="/PcLogin" component={PcLogin}/>           {/*pc登录*/}
        </div>
    </HashRouter>
)

export default Routers